home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 601 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.0 KB

  1. Path: EU.net!sun4nl!xs4all!usenet
  2. From: muaddib@xs4all.nl (thomas)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: opening muimaster.library from another lib
  5. Date: 8 Jan 1996 17:50:02 GMT
  6. Organization: XS4ALL, networking for the masses
  7. Message-ID: <1508.6581T1129T1450@xs4all.nl>
  8. References: <621.6574T1181T1758@xs4all.nl> <30e9e646@lls.se> <699.6577T179T1076@xs4all.nl>
  9.     <4cm4ao$1ub@serpens.rhein.de> <882.6580T131T1213@xs4all.nl> <4cp3pt$dce@serpens.rhein.de>
  10. NNTP-Posting-Host: undiscovered.xs4all.nl
  11. X-Newsreader: THOR 2.2 (Amiga;TCP/IP) *UNREGISTERED*
  12.  
  13. Michael van Elst wrote 07-Jan-96 the following:
  14.  
  15. >>1) Where can I obtain the specification for AmigaOS shared libraries,
  16. >>   I could not find it in the romkernels, autodocs or developer kit.
  17.  
  18. >Well. I don't think that it is written as such. But if you read
  19. >the RKRMs you will find a description on how libraries work and what
  20. >is allowed where. This is authoritative until superceded.
  21.  
  22. To be honest, I cannot find any documentation on the initcode of a library,
  23. only that it's there (rkm: libraries page 444).
  24.  
  25. >>2) Why does the example shared library example in the romkernel open
  26. >>   dos.library in it's init code. It might be always resident for
  27. >>   the current kickstarts, but this could change, and, above all,
  28. >>   why be inconsequent and open the dos.library there and all other
  29. >>   libraries the library needs in libopen. I find this really
  30. >>   the style of a c0d3r, whatever that may be.
  31.  
  32. >The specification does not forbid opening of libraries. It does forbid
  33. >to break single-threadedness which is achieved by Forbid(). The example
  34. >_assumes_ that opening dos.library does not break a Forbid(), that's
  35. >why it is a bad example. You could also treat it as the statement that
  36. >opening dos.library will never break Forbid(). In any case this is
  37. >just guessing on your part. Following the rule is therefore playing on
  38. >the safe side.
  39.  
  40. I recall a thread on the fact that libopen is single-threaded and is called in
  41. Forbidden state, but why can't I find this anywhere in my documentation?
  42.  
  43. Thomas
  44.  
  45.